package cn.melonlib.nars.action.model.entity;

import cn.melonlib.cores.commons.model.entity.TenantRecordEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Type;

import javax.persistence.*;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("收藏资源")
@Entity(name = "CollectionNames")
@Table(name = "nars_collection_names")
public class CollectionNames extends TenantRecordEntity {

    @ModelComment("路径")
    @Column
    @Lob
    @Basic(fetch = FetchType.LAZY)@Type(type = "org.hibernate.type.TextType")
    private String path;

    @ModelComment("资源ID")
    private String namesId;
}
